﻿using SIG.Core;
using SIG.Resources;
using SIG.Resources.Admin;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SIG.Model
{
   
    public partial class Log : Entity<int>
    {
        public Log()
        {
            this.EntityName = EntityNames.Log;            
        }      
       
        [Display(Name = "时间")]
        public DateTime Date { get; set; }

        [Required]
        [StringLength(255)]
        public string Thread { get; set; }

        [Required]
        [StringLength(50)]
        public string Level { get; set; }

        [Required]
        [StringLength(255)]
        public string Logger { get; set; }

        [Required]
        [StringLength(4000)]
        public string Message { get; set; }

        [StringLength(2000)]
        public string Exception { get; set; }

        [StringLength(50)]
        public string UserName { get; set; }
    }
}
